package org.rency.crawler.dal.dao;

import java.util.List;
import org.rency.common.utils.enums.YesNoEnum;
import org.rency.crawler.dal.entity.MetaResourceDO;

/**
 * 描述: ${TODO}<br>
 * 最近修改时间:2017/11/20 17:31<br>
 *
 * @author CaiyuRen
 * @version V1.0
 * @since 2017/11/20 17:31
 */
public interface MetaResourceDao {

  public boolean saveBatch(List<MetaResourceDO> entityList);

  public boolean save(MetaResourceDO entity);

  public List<MetaResourceDO> findAll();

  public MetaResourceDO load(String id);

  public List<MetaResourceDO> find(String firLevelName);

  public MetaResourceDO find(String firLevelName, String secLevelName);

  public MetaResourceDO find(String firLevelName, String secLevelName, YesNoEnum enable);

  public boolean updateEnable(String id, YesNoEnum newValid, YesNoEnum oldValid);

  public boolean delete(String id);

}
